<template>
  <!-- <el-dropdown>
    <el-avatar
      src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
    >
    </el-avatar>
    <span class="el-dropdown-link">
      admin
      <i class="el-icon-arrow-down el-icon--right"></i>
    </span>
    <el-dropdown-menu slot="dropdown">
      <el-dropdown-item>退出登录</el-dropdown-item>
    </el-dropdown-menu>
  </el-dropdown> -->
  <el-dropdown @command="handleCommand">
	<el-avatar
      src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
    >
    </el-avatar>
    <span class="el-dropdown-link">
      admin<i class="el-icon-arrow-down el-icon--right"></i>
    </span>
    <el-dropdown-menu slot="dropdown">
      <el-dropdown-item command="a">退出登录</el-dropdown-item>
    </el-dropdown-menu>
  </el-dropdown>
</template>
<script>
  export default {
    methods: {
      handleCommand() {
        this.$message('退出成功');
      }
    }
  }
</script>

